package com.yds.socket.bean;

import java.net.Socket;

/**
 * 作者:     YDS
 * 创建时间: 2023/2/14 13:52
 * 页面描述: 其它消息
 */
public class OtherMsgBean {

    public int code = -1;
    public String msg;
    public Socket socket;

    public OtherMsgBean(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public OtherMsgBean(int code, Socket socket) {
        this.code = code;
        this.socket = socket;
    }

    @Override
    public String toString() {
        return "OtherMsgBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", socket=" + socket +
                '}';
    }
}
